﻿// 功能：扩展的列表项
// 描述：
// 作者：温伟鹏
// 日期：2010/9/20 10:46:40

using System;
using System.Collections.Generic;
using System.Drawing;
using MeizuSDK.Drawing;

namespace MeizuSDK.Presentation
{
    /// <summary>
    /// 扩展的列表项
    /// </summary>
    public class ListItemEx : ListItem
    {
        #region 公共属性
        /// <summary>
        /// 获取或设置列表项中的描述性文本
        /// </summary>
        public string DescriptionText
        {
            get;
            set;
        }
        /// <summary>
        /// 获取或设置列表项中的附言1
        /// </summary>
        public string PostScript1
        {
            get;
            set;
        }
        /// <summary>
        /// 获取或设置列表项中的附言2
        /// </summary>
        public string PostScript2
        {
            get;
            set;
        }
        /// <summary>
        /// 获取或设置列表项左侧图像
        /// </summary>
        public ImagingHelper FirstImage
        {
            get;
            set;
        }
        /// <summary>
        /// 获取或设置列表项左侧图像的按下状态
        /// </summary>
        public ImagingHelper FirstImagePressed
        {
            get;
            set;
        }
        /// <summary>
        /// 获取或设置列表项右侧图像
        /// </summary>
        public ImagingHelper SecondImage
        {
            get;
            set;
        }
        /// <summary>
        /// 获取或设置列表项右侧图像的按下状态
        /// </summary>
        public ImagingHelper SecondImagePressed
        {
            get;
            set;
        }
        #endregion

        #region 构造函数
        /// <summary>
        /// 构造扩展列表项对象
        /// </summary>
        public ListItemEx()
            : this(string.Empty, null)
        {

        }
        /// <summary>
        /// 构造扩展列表项对象
        /// </summary>
        /// <param name="text">列表项文本</param>
        /// <param name="value">列表项绑定的值</param>
        public ListItemEx(string text, object value)
            : this(text, value, string.Empty, string.Empty, string.Empty,
            null, null, null, null)
        {

        }
        /// <summary>
        /// 构造扩展列表项对象
        /// </summary>
        /// <param name="text">列表项文本</param>
        /// <param name="value">列表项绑定的值</param>
        /// <param name="descriptText"></param>
        /// <param name="postScript1"></param>
        /// <param name="postScript2"></param>
        /// <param name="firstImage"></param>
        /// <param name="firstImagePressed"></param>
        /// <param name="secondImage"></param>
        /// <param name="secondImagePressed"></param>
        public ListItemEx(string text, object value, string descriptText,
            string postScript1, string postScript2,
            ImagingHelper firstImage, ImagingHelper firstImagePressed,
            ImagingHelper secondImage, ImagingHelper secondImagePressed)
            : base(text, value)
        {

        }
        #endregion
    }
}
